using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._MaritimeTools._S._57._Validation
{
    /// <summary>
    /// <para>Repair Nautical Data</para>
    /// <para>Repairs selected data processes on a database with the Nautical schema. Processes include repairing noncollocated structure-equipment features, deleting orphaned FREL and COLLECTIONS records, and resolving blank or duplicate  LNAM attribute values.</para>
    /// <para>使用 Nautical 架构修复数据库上的选定数据进程。过程包括修复非并置结构设备特征、删除孤立的 FREL 和 COLLECTIONS 记录，以及解析空白或重复的 LNAM 属性值。</para>
    /// </summary>    
    [DisplayName("Repair Nautical Data")]
    public class RepairNauticalData : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RepairNauticalData()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_workspace">
        /// <para>Input Workspace</para>
        /// <para>The file or enterprise geodatabase to be repaired.</para>
        /// <para>要修复的文件地理数据库或企业级地理数据库。</para>
        /// </param>
        /// <param name="_repair_operations">
        /// <para>Repair Operations</para>
        /// <para><xdoc>
        ///   <para>Specifies the repair process to be executed.</para>
        ///   <bulletList>
        ///     <bullet_item>Fix LNAM—Records with a blank LNAM attribute will be resolved by populating the records with a valid LNAM value, and duplicate LNAM attribute conflicts will be resolved with a new LNAM value provided to one of the records.</bullet_item><para/>
        ///     <bullet_item>Remove Orphan Relationships—Orphaned structure or equipment and collections records will be removed from the PLTS_FREL and PLTS_COLLECTIONS tables.</bullet_item><para/>
        ///     <bullet_item>Move Equipment Features—Point equipment features that are not coincident with point structure features will be identified and moved to the location of the structure.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定要执行的修复过程。</para>
        ///   <bulletList>
        ///     <bullet_item>修复 LNAM—将通过使用有效的 LNAM 值填充记录来解析具有空白 LNAM 属性的记录，并且将使用提供给其中一个记录的新 LNAM 值来解决重复的 LNAM 属性冲突。</bullet_item><para/>
        ///     <bullet_item>移除孤立关系 - 孤立结构或设备和集合记录将从PLTS_FREL和PLTS_COLLECTIONS表中删除。</bullet_item><para/>
        ///     <bullet_item>移动设备要素 - 将与点结构要素不重合的点设备要素将被识别并移动到结构的位置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        public RepairNauticalData(object _in_workspace, List<object> _repair_operations)
        {
            this._in_workspace = _in_workspace;
            this._repair_operations = _repair_operations;
        }
        public override string ToolboxName => "Maritime Tools";

        public override string ToolName => "Repair Nautical Data";

        public override string CallName => "maritime.RepairNauticalData";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_workspace, _repair_operations, _updated_workspace];

        /// <summary>
        /// <para>Input Workspace</para>
        /// <para>The file or enterprise geodatabase to be repaired.</para>
        /// <para>要修复的文件地理数据库或企业级地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_workspace { get; set; }


        /// <summary>
        /// <para>Repair Operations</para>
        /// <para><xdoc>
        ///   <para>Specifies the repair process to be executed.</para>
        ///   <bulletList>
        ///     <bullet_item>Fix LNAM—Records with a blank LNAM attribute will be resolved by populating the records with a valid LNAM value, and duplicate LNAM attribute conflicts will be resolved with a new LNAM value provided to one of the records.</bullet_item><para/>
        ///     <bullet_item>Remove Orphan Relationships—Orphaned structure or equipment and collections records will be removed from the PLTS_FREL and PLTS_COLLECTIONS tables.</bullet_item><para/>
        ///     <bullet_item>Move Equipment Features—Point equipment features that are not coincident with point structure features will be identified and moved to the location of the structure.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定要执行的修复过程。</para>
        ///   <bulletList>
        ///     <bullet_item>修复 LNAM—将通过使用有效的 LNAM 值填充记录来解析具有空白 LNAM 属性的记录，并且将使用提供给其中一个记录的新 LNAM 值来解决重复的 LNAM 属性冲突。</bullet_item><para/>
        ///     <bullet_item>移除孤立关系 - 孤立结构或设备和集合记录将从PLTS_FREL和PLTS_COLLECTIONS表中删除。</bullet_item><para/>
        ///     <bullet_item>移动设备要素 - 将与点结构要素不重合的点设备要素将被识别并移动到结构的位置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Repair Operations")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _repair_operations { get; set; }


        /// <summary>
        /// <para>Updated Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_workspace { get; set; }


        public RepairNauticalData SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}